package com.corning.patient.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.corning.common.utils.PageUtils;
import com.corning.common.utils.Query;

import com.corning.patient.dao.AftersaleDao;
import com.corning.patient.entity.AftersaleEntity;
import com.corning.patient.service.AftersaleService;


@Service("aftersaleService")
public class AftersaleServiceImpl extends ServiceImpl<AftersaleDao, AftersaleEntity> implements AftersaleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AftersaleEntity> page = this.page(
                new Query<AftersaleEntity>().getPage(params),
                new QueryWrapper<AftersaleEntity>()
        );

        return new PageUtils(page);
    }

}